html,
body {
    padding-top: 50px;
    background-color: #ebebeb;
}

.chat {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 850px;
    height: 650px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #ebebeb;
}

/* chat header start */
.chat-header {
    justify-content: space-between;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.chat-header-user {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

figure {
    margin: 0 0 1rem;
    margin-right: 1rem;
}

.avatar {
    display: inline-block;
    margin-bottom: 0;
    border-radius: 50%;
}

.avatar-lg {
    height: 4rem;
    width: 4rem;
}

img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-style: none;
    object-fit: cover;
}

.rounded-circle {
    border-radius: 50% !important;
}

h5 {
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.text-muted {
    box-sizing: border-box;
    color: #6c757d !important;
    font-size: 80%;
    font-weight: 400;
}

/* chat header end */

/* chat body start */
.chat-body {
    flex: 1;
    margin: 20px 0;
    box-sizing: border-box;
    overflow: hidden;
    outline: none;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message-item {
    max-width: 75%;
    margin-bottom: 20px;
}

.outgoing-message {
    margin-left: auto;
}

.message-item .message-content {
    background: #fff;
    border-radius: 5px;
    padding: 10px 20px;
}

.outgoing-message .message-content {
    background-color: #cdcdcd;
}

.message-item .message-action {
    color: #828282;
    margin-top: 5px;
    font-style: italic;
    font-size: 12px;
}

.outgoing-message .message-action {
    text-align: right;
}

/* chat body end */

/* chat-footer start */
.chat-footer {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    box-sizing: border-box;
    border-top: 2px solid #e1e1e1;
}

form {
    display: flex;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
    background-color: #fff;
    box-sizing: border-box;
}

.form-control {
    display: flex;
    width: 100%;
    padding: .375rem .75rem;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-clip: padding-box;
    background-color: inherit;
    outline: none;
}

.form-buttons {
    display: flex;
    flex: 1;
    box-sizing: border-box;
}

.btn {
    margin: 0;
    text-align: center;
    vertical-align: middle;
    display: inline-flex;
    margin-left: .5rem;
    font-size: 14px;
    line-height: 14px;
    user-select: none;
    border: 1px solid transparent;
    outline: none;
}

.btn-light {
    color: #212529;
    background: #e6e6e6;
    border-color: #e6e6e6;
}

.btn.btn-floating {
    height: 35px;
    width: 35px;
    -webkit-box-align: center;
    align-items: center;
    padding: 0;
    -webkit-box-pack: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-primary {
    color: #fff;
    background: #3db16b;
    border-color: #3db16b;
}

button:not(:disabled) {
    cursor: pointer;
}
/* chat footer end */